using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MainMenu : MonoBehaviour
{

    
    private SelectPanel selectPanel;
    private SettingPanel settingPanel;

    private void Start()
    {
        selectPanel = transform.Find("select_panel").GetComponent<SelectPanel>();
        settingPanel = transform.Find("setting_panel").GetComponent<SettingPanel>();
    }

    public void OnPlayClick()
    {
        selectPanel.Show();
    }

    public void OnSettingClick()
    {
        settingPanel.Show();
    }
    public void OnExitClick()
    {
        Application.Quit();
    }

}
